/**
 *
 */
package de.cbf.cam.dsa.item.model.entities;

import java.util.ArrayList;
import java.util.List;

import de.cbf.cam.dsa.item.model.entities.interfaces.IContainer;

/**
 * @author salter
 *
 */
public class GarmentContainer extends Garment implements IContainer{

	public static final int PI_VOLUME 		=  1000;
	public static final int PI_ITEMS_INSIDE	=  1001;


	public static final String PN_VOLUME 		= "volume";
	public static final String PN_ITEMS_INSIDE	= "items.inside";


	private String 		fVolume;
	private List<Item> 	fItemsInside;

	public GarmentContainer(String name,String volume) {
		super(name);
		fVolume = volume;
	}

	@Override
	protected void init() {
		super.init();
		fVolume =	"";
		fItemsInside = new ArrayList<Item>();
	}

	public String getVolume() {
		return fVolume;
	}

	public void setVolume(String volume) {
		this.fVolume = volume;
	}

	public List<Item> getItemsInside() {
		return fItemsInside;
	}

	public boolean addItemInside(Item item){
		return fItemsInside.add(item);
	}

	public boolean removeItemInside(Item item){
		return fItemsInside.remove(item);
	}

	public void setItemsInside(List<Item> itemsInside) {
		this.fItemsInside = itemsInside;
	}






}
